<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主爱家</title>
<link type="text/css" rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css" media="screen"
	type="text/css" />
</head>
<style>
* {
	margin: 0px;
	padding: 0px;
}

ul {
	margin-bottom: 0px;
}

.dropdown-menu {
	width: 100%;
}

.container {
	margin: 0px;
	padding: 0px;
	width: 400px;
	
}
.myul li{
display:none;

}
</style>
<body style="width: 100%;">
	<div id="header" style="width: 100%;">
		<div id="title">
			<h2 style="text-align: center;">业主爱家</h2>
		</div>
		<div id="blank"></div>
	</div>
	<div id="body" style="width: 100%">
		<div id="aside">
			<div id="asideInfo">
				<h3>当前登录:${user.userName}</h3>
				<p>邮箱地址:${user.email}</p>
				<c:if test="${user!=null}">
					<a href="login">注销</a>
				</c:if>
			</div>
			<div class="container"
				style="width: 400px; padding: 0px; margin: 0px;">
				<ul class="myul">
					<li class="dropdown"  <c:forEach var="list" items="${listassRoot}"> <c:if test="${list.root.id ==1}">style="display: block;" </c:if> </c:forEach>><a href="#" data-toggle="dropdown">业主房屋管理
							<i class="icon-arrow"></i>
					</a>
						<ul class="dropdown-menu">
							<li><a href="houseList">房屋列表</a></li>
						</ul></li>
					<li class="dropdown" <c:forEach var="list" items="${listassRoot}">  <c:if test="${list.root.id ==2}">style="display: block;" </c:if> </c:forEach> ><a href="#" data-toggle="dropdown">投诉管理
							<i class="icon-arrow"></i>
					</a>
						<ul class="dropdown-menu">
							<li><a href="complaintList?type=投诉">投诉列表</a></li>
						</ul></li>
					<li class="dropdown" <c:forEach var="list" items="${listassRoot}">  <c:if test="${list.root.id ==3}">style="display: block;" </c:if> </c:forEach> ><a href="#" data-toggle="dropdown">报修管理
							<i class="icon-arrow"></i>
					</a>
						<ul class="dropdown-menu">
							<li><a href="complaintList?type=报修">报修列表</a></li>
						</ul></li>
					<li class="dropdown" <c:forEach var="list" items="${listassRoot}">  <c:if test="${list.root.id ==4}">style="display: block;" </c:if> </c:forEach> ><a href="#" data-toggle="dropdown">小区通知
							<i class="icon-arrow"></i>
					</a>
						<ul class="dropdown-menu">
						   <c:if test="${user.userRole.id==2 or user.userRole.id==3}">
							<li><a href="editNotice">编写通知</a></li>
							</c:if>
							<li><a href="noticeList">全部通知</a></li>
						</ul></li>
					<li class="dropdown" <c:forEach var="list" items="${listassRoot}">  <c:if test="${list.root.id ==5}">style="display: block;" </c:if> </c:forEach> ><a href="#" data-toggle="dropdown">小区信息<i
							class="icon-arrow"></i></a>
						<ul class="dropdown-menu">
							<li><a href="districtDetail?id=${user.id}">小区详情信息</a></li>
						</ul></li>
					<c:if test="${user.userRole.id==2}">
						<li class="dropdown" <c:forEach var="list" items="${listassRoot}">  <c:if test="${list.root.id ==7}">style="display: block;" </c:if> </c:forEach>><a href="#" data-toggle="dropdown">编辑物管<i
								class="icon-arrow"></i></a>
							<ul class="dropdown-menu">
								<li><a href="disasuserList?id=${user.id}">修改物管信息</a></li>
						   </ul></li>
					</c:if>
				</ul>
			</div>
		</div>
	</div>
	<script src="js/index.js"></script>
</body>
</html>
